package com.base.service;

import com.base.po.voip.RebateDis;
import com.base.utils.Page;

import java.math.BigDecimal;
import java.util.List;

public interface RebateDisService {
    int deleteByPrimaryKey(String tradeId);

    int insert(RebateDis record);

    int insertSelective(RebateDis record);

    RebateDis selectByPrimaryKey(String tradeId);

    int selectByCount(RebateDis record);

    List<RebateDis> selectByAll(RebateDis record, Page page);

    BigDecimal selectByMoney(RebateDis record);

    int updateByPrimaryKeySelective(RebateDis record);

    int updateByPrimaryKey(RebateDis record);

    int updateByUid(String uid);

    // 商家的订单信息
    RebateDis countByShopAll(String shopid, String tradeId, String mobile);

    List<RebateDis> selectByShopAll(Page page, String shopid, String tradeId, String mobile);

    // 代理商的订单信息
    RebateDis countByParentAll(String parentid, String tradeId, String mobile);

    List<RebateDis> selectByParentAll(Page page, String parentid, String tradeId, String mobile);
}